/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package horizon.component;

import java.util.Arrays;

/**
 *
 * @author J_Laptop
 */
public class Animation {

    public String[] imgs;
    public int[] times;
    public boolean repeats;

    public Animation(String[] imgs, int[] times , boolean r) {
        this.imgs = imgs;
        this.times = times;
        repeats = r;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Animation other = (Animation) obj;
        if (!Arrays.deepEquals(this.imgs, other.imgs)) {
            return false;
        }
        if (!Arrays.equals(this.times, other.times)) {
            return false;
        }
        if (this.repeats != other.repeats) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        return hash;
    }
    
    
}
